import header
from utils.plotting import Plane2D
import numpy as np

pi = np.pi

domain = (-pi, pi)
# codomain = (-pi / 2, pi / 2)
ax = Plane2D(xrange=domain,
            #  yrange=codomain,
             axis_type="center")

ax.dashline((-2, -2), (2, 2), label='x')
ax.function(np.sin, *domain, label='sin x')
ax.function(np.cos, *domain, label='cos x')

ax.legend()
ax.show()